package report

import (
	"github.com/gin-gonic/gin"
	"go-interview-forum/api/report"
	"go-interview-forum/middleware"
)

func ReportRouter(g *gin.Engine) {
	brushRouter := g.Group("brush")

	//获取分类下所有题目
	brushRouter.POST("/report", report.GetAllNumber)

	brushRouter.POST("/reports", report.GetCateSumQuantity)
	//创建用户刷题报表
	brushRouter.Use(middleware.TokenAuth)

	brushRouter.POST("/grasp/quantity", report.BushReportCreate)
}
